.class Lcom/netease/newsreader/service/OfflineDownloadService$2;
.super Ljava/lang/Thread;
.source "OfflineDownloadService.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/service/OfflineDownloadService;->onStart(Landroid/content/Intent;I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/service/OfflineDownloadService;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/service/OfflineDownloadService;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    .line 102
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 32

    .prologue
    .line 105
    const-string v5, ""

    .line 106
    .local v5, column:Ljava/lang/String;
    const-string v6, ""

    .line 107
    .local v6, columnName:Ljava/lang/String;
    const-string v8, ""

    .line 108
    .local v8, docid:Ljava/lang/String;
    const-string v13, ""

    .line 109
    .local v13, imgsrc:Ljava/lang/String;
    const-string v11, "0"

    .line 110
    .local v11, hasimg:Ljava/lang/String;
    const-string v20, ""

    .line 111
    .local v20, specialid:Ljava/lang/String;
    const/16 v26, 0x0

    .line 112
    .local v26, total:I
    const/4 v7, 0x0

    .line 113
    .local v7, current:I
    new-instance v23, Ljava/util/ArrayList;

    invoke-direct/range {v23 .. v23}, Ljava/util/ArrayList;-><init>()V

    .line 114
    .local v23, tmpData4Offline:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    new-instance v22, Ljava/util/ArrayList;

    invoke-direct/range {v22 .. v22}, Ljava/util/ArrayList;-><init>()V

    .line 115
    .local v22, tmpArticleData4Offline:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    new-instance v24, Ljava/util/ArrayList;

    invoke-direct/range {v24 .. v24}, Ljava/util/ArrayList;-><init>()V

    .line 116
    .local v24, tmpSpecialData4Offline:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    new-instance v9, Ljava/util/ArrayList;

    invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V

    .line 118
    .local v9, doclist4Offline:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    const/4 v12, 0x0

    .local v12, i:I
    :goto_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$8(Lcom/netease/newsreader/service/OfflineDownloadService;)Ljava/util/ArrayList;

    move-result-object v28

    if-eqz v28, :cond_0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$8(Lcom/netease/newsreader/service/OfflineDownloadService;)Ljava/util/ArrayList;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/util/ArrayList;->size()I

    move-result v28

    move/from16 v0, v28

    if-lt v12, v0, :cond_1

    .line 264
    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v28

    if-nez v28, :cond_15

    .line 265
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x3

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 355
    :goto_1
    return-void

    .line 119
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v28

    if-nez v28, :cond_2

    .line 120
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x3

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_1

    .line 123
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$7(Lcom/netease/newsreader/service/OfflineDownloadService;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Lcom/netease/newsreader/activity/MyApplication;->getIsCancleOfflineDown()Z

    move-result v28

    if-eqz v28, :cond_3

    .line 124
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x4

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_1

    .line 128
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$8(Lcom/netease/newsreader/service/OfflineDownloadService;)Ljava/util/ArrayList;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/util/ArrayList;->size()I

    move-result v28

    mul-int/lit8 v28, v28, 0x14

    add-int/lit8 v26, v28, 0x14

    .line 129
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$8(Lcom/netease/newsreader/service/OfflineDownloadService;)Ljava/util/ArrayList;

    move-result-object v28

    move-object/from16 v0, v28

    invoke-virtual {v0, v12}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    .end local v5           #column:Ljava/lang/String;
    check-cast v5, Ljava/lang/String;

    .line 130
    .restart local v5       #column:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$10(Lcom/netease/newsreader/service/OfflineDownloadService;)Ljava/util/ArrayList;

    move-result-object v28

    move-object/from16 v0, v28

    invoke-virtual {v0, v12}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v6

    .end local v6           #columnName:Ljava/lang/String;
    check-cast v6, Ljava/lang/String;

    .line 133
    .restart local v6       #columnName:Ljava/lang/String;
    invoke-interface/range {v23 .. v23}, Ljava/util/List;->clear()V

    .line 134
    invoke-interface {v9}, Ljava/util/List;->clear()V

    .line 135
    invoke-interface/range {v22 .. v22}, Ljava/util/List;->clear()V

    .line 136
    invoke-interface/range {v24 .. v24}, Ljava/util/List;->clear()V

    .line 137
    if-nez v12, :cond_4

    .line 139
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    const-string v29, "http://c.3g.163.com/nc/article/headline/"

    .line 140
    const/16 v30, 0x0

    const/16 v31, 0x14

    .line 138
    move-object/from16 v0, v28

    move-object/from16 v1, v29

    move/from16 v2, v30

    move/from16 v3, v31

    invoke-static {v0, v1, v5, v2, v3}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadlineArticleList(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;II)Ljava/util/List;

    move-result-object v28

    move-object/from16 v0, v23

    move-object/from16 v1, v28

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 149
    :goto_2
    const/4 v15, 0x0

    .local v15, j:I
    :goto_3
    invoke-interface/range {v23 .. v23}, Ljava/util/List;->size()I

    move-result v28

    move/from16 v0, v28

    if-lt v15, v0, :cond_5

    .line 238
    if-nez v12, :cond_11

    .line 239
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    const-string v29, "head"

    move-object/from16 v0, v28

    move-object/from16 v1, v23

    move-object/from16 v2, v29

    invoke-static {v0, v1, v5, v2}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$12(Lcom/netease/newsreader/service/OfflineDownloadService;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 244
    :goto_4
    const/16 v16, 0x0

    .local v16, m:I
    :goto_5
    invoke-interface/range {v22 .. v22}, Ljava/util/List;->size()I

    move-result v28

    move/from16 v0, v16

    move/from16 v1, v28

    if-lt v0, v1, :cond_12

    .line 261
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$5(Lcom/netease/newsreader/service/OfflineDownloadService;)I

    move-result v29

    invoke-interface/range {v22 .. v22}, Ljava/util/List;->size()I

    move-result v30

    add-int v29, v29, v30

    invoke-static/range {v28 .. v29}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$14(Lcom/netease/newsreader/service/OfflineDownloadService;I)V

    .line 118
    add-int/lit8 v12, v12, 0x1

    goto/16 :goto_0

    .line 144
    .end local v15           #j:I
    .end local v16           #m:I
    :cond_4
    const-string v28, "http://c.3g.163.com/nc/article/list/"

    .line 145
    const/16 v29, 0x0

    const/16 v30, 0x14

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v31, v0

    .line 143
    move-object/from16 v0, v28

    move/from16 v1, v29

    move/from16 v2, v30

    move-object/from16 v3, v31

    invoke-static {v0, v5, v1, v2, v3}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v28

    move-object/from16 v0, v23

    move-object/from16 v1, v28

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_2

    .line 150
    .restart local v15       #j:I
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v28

    if-nez v28, :cond_6

    .line 151
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x3

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_1

    .line 154
    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$7(Lcom/netease/newsreader/service/OfflineDownloadService;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Lcom/netease/newsreader/activity/MyApplication;->getIsCancleOfflineDown()Z

    move-result v28

    if-eqz v28, :cond_7

    .line 155
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x4

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_1

    .line 158
    :cond_7
    add-int/lit8 v7, v7, 0x1

    .line 159
    move-object/from16 v0, v23

    invoke-interface {v0, v15}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/util/HashMap;

    const-string v29, "docid"

    invoke-virtual/range {v28 .. v29}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v28

    if-eqz v28, :cond_b

    .line 160
    move-object/from16 v0, v23

    invoke-interface {v0, v15}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/util/HashMap;

    const-string v29, "docid"

    invoke-virtual/range {v28 .. v29}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    .line 161
    move-object/from16 v0, v23

    invoke-interface {v0, v15}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/util/HashMap;

    const-string v29, "imgsrc"

    invoke-virtual/range {v28 .. v29}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v13

    .line 162
    move-object/from16 v0, v23

    invoke-interface {v0, v15}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/util/HashMap;

    const-string v29, "hasImg"

    invoke-virtual/range {v28 .. v29}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v11

    .line 163
    move-object/from16 v0, v23

    invoke-interface {v0, v15}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/util/HashMap;

    const-string v29, "specialID"

    invoke-virtual/range {v28 .. v29}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v20

    .line 167
    if-eqz v8, :cond_b

    const-string v28, ""

    move-object/from16 v0, v28

    invoke-virtual {v0, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v28

    if-nez v28, :cond_b

    .line 168
    invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

    move-result-object v17

    .line 169
    .local v17, msg:Landroid/os/Message;
    const/16 v28, 0x1

    move/from16 v0, v28

    move-object/from16 v1, v17

    iput v0, v1, Landroid/os/Message;->what:I

    .line 170
    new-instance v4, Landroid/os/Bundle;

    invoke-direct {v4}, Landroid/os/Bundle;-><init>()V

    .line 172
    .local v4, bundle:Landroid/os/Bundle;
    const-string v28, "current_num"

    new-instance v29, Ljava/lang/StringBuilder;

    invoke-static {v7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v30

    invoke-direct/range {v29 .. v30}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v30, "/"

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v29

    move-object/from16 v0, v29

    move/from16 v1, v26

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v29

    invoke-virtual/range {v29 .. v29}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v29

    move-object/from16 v0, v28

    move-object/from16 v1, v29

    invoke-virtual {v4, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 173
    const-string v28, "current_col"

    move-object/from16 v0, v28

    invoke-virtual {v4, v0, v6}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 174
    const-string v28, "current_num_in_col"

    new-instance v29, Ljava/lang/StringBuilder;

    const-string v30, "("

    invoke-direct/range {v29 .. v30}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    add-int/lit8 v30, v15, 0x1

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v29

    const-string v30, "/"

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v29

    invoke-interface/range {v23 .. v23}, Ljava/util/List;->size()I

    move-result v30

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v29

    const-string v30, ")"

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v29

    invoke-virtual/range {v29 .. v29}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v29

    move-object/from16 v0, v28

    move-object/from16 v1, v29

    invoke-virtual {v4, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 175
    const-string v28, "percent"

    mul-int/lit8 v29, v7, 0x64

    div-int v29, v29, v26

    move-object/from16 v0, v28

    move/from16 v1, v29

    invoke-virtual {v4, v0, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 177
    move-object/from16 v0, v17

    invoke-virtual {v0, v4}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 178
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    move-object/from16 v0, v28

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 180
    invoke-interface {v9, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 182
    new-instance v28, Ljava/lang/StringBuilder;

    sget-object v29, Lcom/netease/newsreader/util/FileUtils;->DetailPageTempDir:Ljava/lang/String;

    invoke-static/range {v29 .. v29}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v29

    invoke-direct/range {v28 .. v29}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v28

    invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v28

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/util/FileUtils;->isFileExit(Ljava/lang/String;)Z

    move-result v28

    if-nez v28, :cond_c

    .line 183
    const-string v28, "full"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v29, v0

    move-object/from16 v0, v28

    move-object/from16 v1, v29

    invoke-static {v8, v0, v1}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleContents(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/util/HashMap;

    move-result-object v18

    .line 184
    .local v18, netmap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-virtual/range {v18 .. v18}, Ljava/util/HashMap;->isEmpty()Z

    move-result v28

    if-eqz v28, :cond_8

    .line 185
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$6(Lcom/netease/newsreader/service/OfflineDownloadService;)I

    move-result v29

    add-int/lit8 v29, v29, 0x1

    invoke-static/range {v28 .. v29}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$11(Lcom/netease/newsreader/service/OfflineDownloadService;I)V

    .line 187
    :cond_8
    move-object/from16 v0, v22

    move-object/from16 v1, v18

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 195
    .end local v18           #netmap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :goto_6
    if-eqz v20, :cond_9

    const-string v28, ""

    move-object/from16 v0, v28

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v28

    if-nez v28, :cond_9

    .line 197
    const-string v28, "http://c.3g.163.com/nc/special/"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v29, v0

    move-object/from16 v0, v28

    move-object/from16 v1, v20

    move-object/from16 v2, v29

    invoke-static {v0, v1, v2}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getSpecialArticleList(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/util/List;

    move-result-object v24

    .line 198
    const/16 v27, 0x0

    .local v27, x:I
    :goto_7
    invoke-interface/range {v24 .. v24}, Ljava/util/List;->size()I

    move-result v28

    move/from16 v0, v27

    move/from16 v1, v28

    if-lt v0, v1, :cond_d

    .line 218
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    const-string v29, "head"

    move-object/from16 v0, v28

    move-object/from16 v1, v24

    move-object/from16 v2, v20

    move-object/from16 v3, v29

    invoke-static {v0, v1, v2, v3}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$12(Lcom/netease/newsreader/service/OfflineDownloadService;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 222
    .end local v27           #x:I
    :cond_9
    const-string v28, "1"

    move-object/from16 v0, v28

    invoke-virtual {v0, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v28

    if-eqz v28, :cond_a

    .line 224
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$13(Lcom/netease/newsreader/service/OfflineDownloadService;)Lcom/netease/newsreader/util/BaseImageDownloader;

    move-result-object v28

    move-object/from16 v0, v28

    invoke-virtual {v0, v13}, Lcom/netease/newsreader/util/BaseImageDownloader;->getImageforBatche(Ljava/lang/String;)V

    .line 229
    :cond_a
    const-wide/16 v28, 0x12c

    :try_start_0
    invoke-static/range {v28 .. v29}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 149
    .end local v4           #bundle:Landroid/os/Bundle;
    .end local v17           #msg:Landroid/os/Message;
    :cond_b
    :goto_8
    add-int/lit8 v15, v15, 0x1

    goto/16 :goto_3

    .line 191
    .restart local v4       #bundle:Landroid/os/Bundle;
    .restart local v17       #msg:Landroid/os/Message;
    :cond_c
    new-instance v28, Ljava/util/HashMap;

    invoke-direct/range {v28 .. v28}, Ljava/util/HashMap;-><init>()V

    move-object/from16 v0, v22

    move-object/from16 v1, v28

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_6

    .line 199
    .restart local v27       #x:I
    :cond_d
    move-object/from16 v0, v24

    move/from16 v1, v27

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/util/HashMap;

    const-string v29, "docid"

    invoke-virtual/range {v28 .. v29}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v28

    if-eqz v28, :cond_f

    .line 200
    move-object/from16 v0, v24

    move/from16 v1, v27

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/util/HashMap;

    const-string v29, "docid"

    invoke-virtual/range {v28 .. v29}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v19

    .line 201
    .local v19, specialdocid:Ljava/lang/String;
    move-object/from16 v0, v19

    invoke-interface {v9, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 203
    new-instance v28, Ljava/lang/StringBuilder;

    sget-object v29, Lcom/netease/newsreader/util/FileUtils;->DetailPageTempDir:Ljava/lang/String;

    invoke-static/range {v29 .. v29}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v29

    invoke-direct/range {v28 .. v29}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v28

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v28

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/util/FileUtils;->isFileExit(Ljava/lang/String;)Z

    move-result v28

    if-nez v28, :cond_10

    .line 204
    const-string v28, "full"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v29, v0

    move-object/from16 v0, v19

    move-object/from16 v1, v28

    move-object/from16 v2, v29

    invoke-static {v0, v1, v2}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleContents(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/util/HashMap;

    move-result-object v18

    .line 205
    .restart local v18       #netmap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-virtual/range {v18 .. v18}, Ljava/util/HashMap;->isEmpty()Z

    move-result v28

    if-eqz v28, :cond_e

    .line 206
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$6(Lcom/netease/newsreader/service/OfflineDownloadService;)I

    move-result v29

    add-int/lit8 v29, v29, 0x1

    invoke-static/range {v28 .. v29}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$11(Lcom/netease/newsreader/service/OfflineDownloadService;I)V

    .line 208
    :cond_e
    move-object/from16 v0, v22

    move-object/from16 v1, v18

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 198
    .end local v18           #netmap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v19           #specialdocid:Ljava/lang/String;
    :cond_f
    :goto_9
    add-int/lit8 v27, v27, 0x1

    goto/16 :goto_7

    .line 212
    .restart local v19       #specialdocid:Ljava/lang/String;
    :cond_10
    new-instance v28, Ljava/util/HashMap;

    invoke-direct/range {v28 .. v28}, Ljava/util/HashMap;-><init>()V

    move-object/from16 v0, v22

    move-object/from16 v1, v28

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_9

    .line 230
    .end local v19           #specialdocid:Ljava/lang/String;
    .end local v27           #x:I
    :catch_0
    move-exception v10

    .line 232
    .local v10, e:Ljava/lang/InterruptedException;
    invoke-virtual {v10}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto/16 :goto_8

    .line 241
    .end local v4           #bundle:Landroid/os/Bundle;
    .end local v10           #e:Ljava/lang/InterruptedException;
    .end local v17           #msg:Landroid/os/Message;
    :cond_11
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    const-string v29, "nonhead"

    move-object/from16 v0, v28

    move-object/from16 v1, v23

    move-object/from16 v2, v29

    invoke-static {v0, v1, v5, v2}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$12(Lcom/netease/newsreader/service/OfflineDownloadService;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_4

    .line 245
    .restart local v16       #m:I
    :cond_12
    invoke-static {}, Lcom/netease/newsreader/util/FileUtils;->isSDCardMounted()Z

    move-result v28

    if-nez v28, :cond_13

    .line 246
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x5

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_1

    .line 249
    :cond_13
    new-instance v29, Ljava/lang/StringBuilder;

    sget-object v28, Lcom/netease/newsreader/util/FileUtils;->DetailPageTempDir:Ljava/lang/String;

    invoke-static/range {v28 .. v28}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v28

    move-object/from16 v0, v29

    move-object/from16 v1, v28

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move/from16 v0, v16

    invoke-interface {v9, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/lang/String;

    move-object/from16 v0, v29

    move-object/from16 v1, v28

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v28

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/util/FileUtils;->isFileExit(Ljava/lang/String;)Z

    move-result v28

    if-nez v28, :cond_14

    .line 250
    new-instance v21, Landroid/content/Intent;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    const-class v29, Lcom/netease/newsreader/service/SyncDownLoadService;

    move-object/from16 v0, v21

    move-object/from16 v1, v28

    move-object/from16 v2, v29

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 251
    .local v21, sync:Landroid/content/Intent;
    new-instance v14, Landroid/os/Bundle;

    invoke-direct {v14}, Landroid/os/Bundle;-><init>()V

    .line 252
    .local v14, intentvalue:Landroid/os/Bundle;
    sget-object v29, Lcom/netease/newsreader/service/SyncDownLoadService;->ARTICLE:Ljava/lang/String;

    move-object/from16 v0, v22

    move/from16 v1, v16

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/io/Serializable;

    move-object/from16 v0, v29

    move-object/from16 v1, v28

    invoke-virtual {v14, v0, v1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    .line 253
    sget-object v29, Lcom/netease/newsreader/service/SyncDownLoadService;->DOCID:Ljava/lang/String;

    move/from16 v0, v16

    invoke-interface {v9, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/lang/String;

    move-object/from16 v0, v29

    move-object/from16 v1, v28

    invoke-virtual {v14, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 254
    sget-object v28, Lcom/netease/newsreader/service/SyncDownLoadService;->COLUMN:Ljava/lang/String;

    move-object/from16 v0, v28

    invoke-virtual {v14, v0, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 255
    move-object/from16 v0, v21

    invoke-virtual {v0, v14}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 256
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    move-object/from16 v0, v28

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/netease/newsreader/service/OfflineDownloadService;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 244
    .end local v14           #intentvalue:Landroid/os/Bundle;
    .end local v21           #sync:Landroid/content/Intent;
    :cond_14
    add-int/lit8 v16, v16, 0x1

    goto/16 :goto_5

    .line 268
    .end local v15           #j:I
    .end local v16           #m:I
    :cond_15
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$7(Lcom/netease/newsreader/service/OfflineDownloadService;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Lcom/netease/newsreader/activity/MyApplication;->getIsCancleOfflineDown()Z

    move-result v28

    if-eqz v28, :cond_16

    .line 269
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x4

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_1

    .line 273
    :cond_16
    new-instance v25, Ljava/util/ArrayList;

    invoke-direct/range {v25 .. v25}, Ljava/util/ArrayList;-><init>()V

    .line 275
    .local v25, tmpTopicData4Offline:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-interface/range {v25 .. v25}, Ljava/util/List;->clear()V

    .line 276
    invoke-interface {v9}, Ljava/util/List;->clear()V

    .line 277
    invoke-interface/range {v22 .. v22}, Ljava/util/List;->clear()V

    .line 278
    invoke-interface/range {v24 .. v24}, Ljava/util/List;->clear()V

    .line 280
    const-string v28, "http://c.3g.163.com/nc/article/attitude/"

    const/16 v29, 0x0

    const/16 v30, 0x14

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v31, v0

    invoke-static/range {v28 .. v31}, Lcom/netease/newsreader/rss/GetContent;->getAttitudeList(Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v28

    move-object/from16 v0, v25

    move-object/from16 v1, v28

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 282
    const/4 v15, 0x0

    .restart local v15       #j:I
    :goto_a
    invoke-interface/range {v25 .. v25}, Ljava/util/List;->size()I

    move-result v28

    move/from16 v0, v28

    if-lt v15, v0, :cond_17

    .line 333
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    const-string v29, "attitude"

    const-string v30, ""

    move-object/from16 v0, v28

    move-object/from16 v1, v25

    move-object/from16 v2, v29

    move-object/from16 v3, v30

    invoke-static {v0, v1, v2, v3}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$15(Lcom/netease/newsreader/service/OfflineDownloadService;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 335
    const/16 v16, 0x0

    .restart local v16       #m:I
    :goto_b
    invoke-interface/range {v22 .. v22}, Ljava/util/List;->size()I

    move-result v28

    move/from16 v0, v16

    move/from16 v1, v28

    if-lt v0, v1, :cond_1d

    .line 351
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$5(Lcom/netease/newsreader/service/OfflineDownloadService;)I

    move-result v29

    invoke-interface/range {v22 .. v22}, Ljava/util/List;->size()I

    move-result v30

    add-int v29, v29, v30

    invoke-static/range {v28 .. v29}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$14(Lcom/netease/newsreader/service/OfflineDownloadService;I)V

    .line 352
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x2

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 353
    invoke-interface/range {v25 .. v25}, Ljava/util/List;->clear()V

    .line 354
    invoke-interface/range {v22 .. v22}, Ljava/util/List;->clear()V

    goto/16 :goto_1

    .line 283
    .end local v16           #m:I
    :cond_17
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v28

    if-nez v28, :cond_18

    .line 284
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x3

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_1

    .line 287
    :cond_18
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$7(Lcom/netease/newsreader/service/OfflineDownloadService;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Lcom/netease/newsreader/activity/MyApplication;->getIsCancleOfflineDown()Z

    move-result v28

    if-eqz v28, :cond_19

    .line 288
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x4

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_1

    .line 291
    :cond_19
    add-int/lit8 v7, v7, 0x1

    .line 292
    move-object/from16 v0, v25

    invoke-interface {v0, v15}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/util/Map;

    const-string v29, "docid"

    invoke-interface/range {v28 .. v29}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v28

    if-eqz v28, :cond_1b

    .line 293
    move-object/from16 v0, v25

    invoke-interface {v0, v15}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/util/Map;

    const-string v29, "docid"

    invoke-interface/range {v28 .. v29}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    .line 296
    if-eqz v8, :cond_1b

    const-string v28, ""

    move-object/from16 v0, v28

    invoke-virtual {v0, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v28

    if-nez v28, :cond_1b

    .line 297
    invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

    move-result-object v17

    .line 298
    .restart local v17       #msg:Landroid/os/Message;
    const/16 v28, 0x1

    move/from16 v0, v28

    move-object/from16 v1, v17

    iput v0, v1, Landroid/os/Message;->what:I

    .line 299
    new-instance v4, Landroid/os/Bundle;

    invoke-direct {v4}, Landroid/os/Bundle;-><init>()V

    .line 301
    .restart local v4       #bundle:Landroid/os/Bundle;
    const-string v28, "current_num"

    new-instance v29, Ljava/lang/StringBuilder;

    invoke-static {v7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v30

    invoke-direct/range {v29 .. v30}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v30, "/"

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v29

    move-object/from16 v0, v29

    move/from16 v1, v26

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v29

    invoke-virtual/range {v29 .. v29}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v29

    move-object/from16 v0, v28

    move-object/from16 v1, v29

    invoke-virtual {v4, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 302
    const-string v28, "current_col"

    const-string v29, "\u8bdd\u9898"

    move-object/from16 v0, v28

    move-object/from16 v1, v29

    invoke-virtual {v4, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 303
    const-string v28, "current_num_in_col"

    new-instance v29, Ljava/lang/StringBuilder;

    const-string v30, "("

    invoke-direct/range {v29 .. v30}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    add-int/lit8 v30, v15, 0x1

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v29

    const-string v30, "/"

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v29

    invoke-interface/range {v25 .. v25}, Ljava/util/List;->size()I

    move-result v30

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v29

    const-string v30, ")"

    invoke-virtual/range {v29 .. v30}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v29

    invoke-virtual/range {v29 .. v29}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v29

    move-object/from16 v0, v28

    move-object/from16 v1, v29

    invoke-virtual {v4, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 304
    const-string v28, "percent"

    mul-int/lit8 v29, v7, 0x64

    div-int v29, v29, v26

    move-object/from16 v0, v28

    move/from16 v1, v29

    invoke-virtual {v4, v0, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 306
    move-object/from16 v0, v17

    invoke-virtual {v0, v4}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 307
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    move-object/from16 v0, v28

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 309
    invoke-interface {v9, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 311
    new-instance v28, Ljava/lang/StringBuilder;

    sget-object v29, Lcom/netease/newsreader/util/FileUtils;->DetailPageTempDir:Ljava/lang/String;

    invoke-static/range {v29 .. v29}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v29

    invoke-direct/range {v28 .. v29}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v28

    invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v28

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/util/FileUtils;->isFileExit(Ljava/lang/String;)Z

    move-result v28

    if-nez v28, :cond_1c

    .line 312
    const-string v28, "full"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v29, v0

    move-object/from16 v0, v28

    move-object/from16 v1, v29

    invoke-static {v8, v0, v1}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleContents(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/util/HashMap;

    move-result-object v18

    .line 313
    .restart local v18       #netmap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-virtual/range {v18 .. v18}, Ljava/util/HashMap;->isEmpty()Z

    move-result v28

    if-eqz v28, :cond_1a

    .line 314
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$6(Lcom/netease/newsreader/service/OfflineDownloadService;)I

    move-result v29

    add-int/lit8 v29, v29, 0x1

    invoke-static/range {v28 .. v29}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$11(Lcom/netease/newsreader/service/OfflineDownloadService;I)V

    .line 316
    :cond_1a
    move-object/from16 v0, v22

    move-object/from16 v1, v18

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 324
    .end local v18           #netmap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :goto_c
    const-wide/16 v28, 0x12c

    :try_start_1
    invoke-static/range {v28 .. v29}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_1

    .line 282
    .end local v4           #bundle:Landroid/os/Bundle;
    .end local v17           #msg:Landroid/os/Message;
    :cond_1b
    :goto_d
    add-int/lit8 v15, v15, 0x1

    goto/16 :goto_a

    .line 320
    .restart local v4       #bundle:Landroid/os/Bundle;
    .restart local v17       #msg:Landroid/os/Message;
    :cond_1c
    new-instance v28, Ljava/util/HashMap;

    invoke-direct/range {v28 .. v28}, Ljava/util/HashMap;-><init>()V

    move-object/from16 v0, v22

    move-object/from16 v1, v28

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_c

    .line 325
    :catch_1
    move-exception v10

    .line 327
    .restart local v10       #e:Ljava/lang/InterruptedException;
    invoke-virtual {v10}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_d

    .line 336
    .end local v4           #bundle:Landroid/os/Bundle;
    .end local v10           #e:Ljava/lang/InterruptedException;
    .end local v17           #msg:Landroid/os/Message;
    .restart local v16       #m:I
    :cond_1d
    invoke-static {}, Lcom/netease/newsreader/util/FileUtils;->isSDCardMounted()Z

    move-result v28

    if-nez v28, :cond_1e

    .line 337
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/service/OfflineDownloadService;->access$9(Lcom/netease/newsreader/service/OfflineDownloadService;)Landroid/os/Handler;

    move-result-object v28

    const/16 v29, 0x5

    invoke-virtual/range {v28 .. v29}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_1

    .line 340
    :cond_1e
    new-instance v29, Ljava/lang/StringBuilder;

    sget-object v28, Lcom/netease/newsreader/util/FileUtils;->DetailPageTempDir:Ljava/lang/String;

    invoke-static/range {v28 .. v28}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v28

    move-object/from16 v0, v29

    move-object/from16 v1, v28

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move/from16 v0, v16

    invoke-interface {v9, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/lang/String;

    move-object/from16 v0, v29

    move-object/from16 v1, v28

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v28

    invoke-virtual/range {v28 .. v28}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v28

    invoke-static/range {v28 .. v28}, Lcom/netease/newsreader/util/FileUtils;->isFileExit(Ljava/lang/String;)Z

    move-result v28

    if-nez v28, :cond_1f

    .line 341
    new-instance v21, Landroid/content/Intent;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    const-class v29, Lcom/netease/newsreader/service/SyncDownLoadService;

    move-object/from16 v0, v21

    move-object/from16 v1, v28

    move-object/from16 v2, v29

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 342
    .restart local v21       #sync:Landroid/content/Intent;
    new-instance v14, Landroid/os/Bundle;

    invoke-direct {v14}, Landroid/os/Bundle;-><init>()V

    .line 343
    .restart local v14       #intentvalue:Landroid/os/Bundle;
    sget-object v29, Lcom/netease/newsreader/service/SyncDownLoadService;->ARTICLE:Ljava/lang/String;

    move-object/from16 v0, v22

    move/from16 v1, v16

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/io/Serializable;

    move-object/from16 v0, v29

    move-object/from16 v1, v28

    invoke-virtual {v14, v0, v1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    .line 344
    sget-object v29, Lcom/netease/newsreader/service/SyncDownLoadService;->DOCID:Ljava/lang/String;

    move/from16 v0, v16

    invoke-interface {v9, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Ljava/lang/String;

    move-object/from16 v0, v29

    move-object/from16 v1, v28

    invoke-virtual {v14, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 345
    sget-object v28, Lcom/netease/newsreader/service/SyncDownLoadService;->COLUMN:Ljava/lang/String;

    const-string v29, "attitude"

    move-object/from16 v0, v28

    move-object/from16 v1, v29

    invoke-virtual {v14, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 346
    move-object/from16 v0, v21

    invoke-virtual {v0, v14}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 347
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/service/OfflineDownloadService$2;->this$0:Lcom/netease/newsreader/service/OfflineDownloadService;

    move-object/from16 v28, v0

    move-object/from16 v0, v28

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/netease/newsreader/service/OfflineDownloadService;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 335
    .end local v14           #intentvalue:Landroid/os/Bundle;
    .end local v21           #sync:Landroid/content/Intent;
    :cond_1f
    add-int/lit8 v16, v16, 0x1

    goto/16 :goto_b
.end method
